<template>
  <div class="demo">
    <div class="demo-title">封顶数字</div>
    <div class="demo-content">
      <Badge :count="99">
        <Avatar shape="square" size="large" />
      </Badge>
      <Badge :count="100">
        <Avatar shape="square" size="large" />
      </Badge>
      <Badge :count="99" :overflow-count="10">
        <Avatar shape="square" size="large" />
      </Badge>
      <Badge :count="1000" :overflow-count="999">
        <Avatar shape="square" size="large" />
      </Badge>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import Avatar from '@sscd/avatar';
  import Badge from '@sscd/badge';
</script>

<style lang="less" scoped>
  .demo-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
</style>
